<?php

namespace App\Console\Commands\Sale;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class ChangAccrualPerformance extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'command:changaccrualperformance';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '自动重新计算计提和业绩';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        //获取需要重新计价的列表
        $this->dosettleprice();
        //根据列表获取对应价格
        Log::info('自动重新计算计提和业绩'.date('Y-m-d H:i:s'));
        return 0;
    }


    //重新计价
    protected function dosettleprice(){

    }
}
